package com.yonyou.pmclouds.projectpart.service;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.projectpart.entity.ProjectPartVO;

public interface IProjectpartService {

    /**
     * 新增保存
     * @param projectPartVO
     * @return
     * @throws BusinessException
     */
    ProjectPartVO insert(ProjectPartVO projectPartVO) throws BusinessException;

    /**
     * 新增保存(for移动端)
     * @param projectPartVO
     * @return
     * @throws BusinessException
     */
    ProjectPartVO insertForMobile(ProjectPartVO projectPartVO) throws BusinessException;

    /**
     * 修改-保存
     * @param projectPartVO
     * @return
     * @throws BusinessException
     */
    ProjectPartVO update(ProjectPartVO projectPartVO) throws BusinessException;

    /**
     * 校验工程部位档案被别的业务单据引用入口
     * @param projectPartVO
     * @return
     * @throws BusinessException
     */
    ProjectPartVO checkReference(ProjectPartVO projectPartVO) throws BusinessException;

    /**
     * 删除
     * @param projectPartVO
     * @return
     * @throws BusinessException
     */
    ProjectPartVO delete(ProjectPartVO projectPartVO) throws BusinessException;

    /**
     * 修改启用标志
     * @param projectPartVO
     * @return
     * @throws BusinessException
     */
    ProjectPartVO updateEnableStatus(ProjectPartVO projectPartVO) throws BusinessException;

}
